﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MicroApi.Core.WebSockets
{
    public interface IClientSession
    {

        public Task SendAsync(Enum command, object data)
        {
            return SendAsync(command.ToString(), data);
        }

        Task SendAsync(string command, object data);
        Task SendAsync(object data);

        bool IsConnecting();
    }
}
